﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using DiagramDesigner.Common.Interfaces;

namespace Shapes.Triangle
{
    [Export(typeof(IGeometryPlugin))]
    public class TriangleGeometryPlugin : IGeometryPlugin
    {
        public Geometry GetGeometry()
        {
            return Geometry.Parse("M 0,1 L 0.5,0 L 1,1 Z");
        }

        public string Name { get { return "Triangle"; } }
        public Point[] Points
        {
            get
            {
                return new Point[]
                       {
                           new Point(0,1), 
                           new Point(0.5,0), 
                           new Point(1,1), 
                       };
            }
        }
    }
}
